import pyautogui
import time
import pyperclip
import redis
import random

# 指定坐标，例如 (100, 200)
x, y = 900, 200


def click(x, y, sleep=0):
    time.sleep(sleep)
    # 移动鼠标到指定坐标
    pyautogui.moveTo(x, y)

    # 在该坐标处点击鼠标
    pyautogui.click()


# //实现粘贴剪贴板内容


def paste(x, y, sleep=0):
    time.sleep(sleep)

    # 移动鼠标到指定坐标
    pyautogui.moveTo(x, y)

    # 在该坐标处点击鼠标
    pyautogui.click()

    # 获取剪贴板内容
    clipboard_text = pyperclip.paste()

    # 粘贴内容
    pyautogui.hotkey("ctrl", "v")
    # 打印出剪贴板内容（或进行其他操作，如保存到变量、文件等）
    print(clipboard_text)


def clear(x, y, sleep=0):
    # 移动鼠标到指定坐标
    pyautogui.moveTo(x, y)

    # 在该坐标处点击鼠标
    pyautogui.click()

    pyautogui.hotkey("ctrl", "a")
    pyautogui.hotkey("ctrl", "x")


def copy(message):

    pyperclip.copy(message)


def getRedisQueueOne():

    # 连接到Redis服务器
    redis_client = redis.Redis(host="127.0.0.1", port=6379, decode_responses=True)

    # 从名为'my_queue'的队列中弹出一条消息
    return redis_client.lpop("my_queue")


def tpl(dep=""):
    return [
        {"type": "click", "x": 234, "y": 274, "sleep": random.randint(8, 15)},  # 点击创建
        {"type": "click", "x": 345.0, "y": 34.0, "sleep": 5},  # 点击群名称
        {"type": "clear", "x": 345.0, "y": 34.0, "sleep": 1},  # 点击并粘贴群名
        {"type": "copy", "text": dep, "sleep": 0},  # 复制群名称
        {"type": "paste", "x": 345.0, "y": 34.0, "sleep": 2},  # 点击并粘贴群名
        {"type": "click", "x": 28, "y": 369, "sleep": 3},
    ]


def run_setp(datas):
    for data in datas:
        type = data["type"]
        if type == "click":
            click(data["x"], data["y"], data["sleep"])
        elif type == "clear":
            clear(data["x"], data["y"], data["sleep"])
        elif type == "paste":
            paste(data["x"], data["y"], data["sleep"])
        elif type == "copy":
            copy(data["text"])
        else:
            print("error")


deps = [
    # {"id": "1784911891088084993", "labelName": "701P_成都温江光华公园店"},
    # {"id": "1784911891062919169", "labelName": "703L_宜宾南溪鑫宇钻石城店"},
    # {"id": "1784911891033559042", "labelName": "704O_自贡南湖店"},
    # {"id": "1784911891008393218", "labelName": "710D_成都蜀都万达广场店"},
    # {"id": "1784911890979033090", "labelName": "711Q_内江万达广场店"},
    # {"id": "1784911890953867265", "labelName": "712Q_成都青羊万达广场店"},
    # {"id": "1784911890928701441", "labelName": "712R_成都双流万达广场店"},
    # {"id": "1784911890903535618", "labelName": "71AC_成都新都苏宁易购广场店"},
    # {"id": "1784911890882564097", "labelName": "71AI_成都金牛万达广场店"},
    # {"id": "1784911890861592577", "labelName": "71D8_苏宁易家成都高新盛和路店"},
    # {"id": "1784911890840621058", "labelName": "723L_成都锦华万达广场店"},
    # {"id": "1784911890819649538", "labelName": "724S_眉山万达广场店"},
    # {"id": "1784911890798678018", "labelName": "738E_眉山大润发店"},
    # {"id": "1784911890777706497", "labelName": "7527_宜宾翠柏大道店"},
    # {"id": "1784911890756734977", "labelName": "77EN_自贡市富顺两校店"},
    # {"id": "1784911890714791937", "labelName": "7935_成都天府立交店"},
    # {"id": "1784911890643488769", "labelName": "8048_宜宾南岸体育广场店"},
    # {"id": "1784911890622517250", "labelName": "8633_成都新商业广场店"},
    # {"id": "1784911890588962818", "labelName": "87AS_成都锦江春熙路店"},
    # {"id": "1784911890567991298", "labelName": "9104_成都都江堰旗舰店"},
    # {"id": "1784911890547019777", "labelName": "9478_成都双楠店"},
    # {"id": "1784911890526048258", "labelName": "9479_成都万年场旗舰店"},
    # {"id": "1784911890505076737", "labelName": "9480_成都西大街店"},
    # {"id": "1784911890484105218", "labelName": "9486_成都建设路旗舰店"},
    # {"id": "1784911890463133698", "labelName": "9488_成都华阳正西街店"},
    # {"id": "1784911890442162177", "labelName": "9540_内江百货大楼店"},
    # {"id": "1784911890425384961", "labelName": "9541_内江邱家嘴店"},
    # {"id": "1784911890396024834", "labelName": "9543_内江城市花园店"},
    # {"id": "1784911890375053313", "labelName": "9560_自贡汇东路店"},
    # {"id": "1784911890354081794", "labelName": "9563_成都犀浦百伦广场店"},
    # {"id": "1784911890333110273", "labelName": "柏溪店"},
    # {"id": "1784911890312138754", "labelName": "炳草岗店"},
    # {"id": "1784911890291167233", "labelName": "炳草岗中心广场店"},
    # {"id": "1784911890270195714", "labelName": "成都崇州万达广场店"},
    # {"id": "1784911890245029889", "labelName": "成都都江堰旗舰店"},
    # {"id": "1784911890211475458", "labelName": "成都建设路店"},
    # {"id": "1784911890186309633", "labelName": "成都建设路卖场"},
    # {"id": "1784911890165338114", "labelName": "成都金牛万达广场店"},
    # {"id": "1784911890144366594", "labelName": "成都锦华万达广场店"},
    # {"id": "1784911890123395074", "labelName": "成都京东五星龙泉店"},
    # {"id": "1784911890102423553", "labelName": "成都京东五星双流店"},
    # {"id": "1784911890081452033", "labelName": "成都京东五星万年场店"},
    # {"id": "1784911890052091905", "labelName": "成都九兴电器有限公司"},
    # {"id": "1784911890031120385", "labelName": "成都龙泉店"},
    # {"id": "1784911890010148866", "labelName": "成都牡丹新城店"},
    # {"id": "1784911889989177345", "labelName": "成都郫都卖场"},
    # {
    #     "id": "1784911889968205826",
    #     "labelName": "成都郫都区恒创太平洋购物中心苏宁易购零售云店",
    # },
    # {"id": "1784911889947234306", "labelName": "成都上古卖场"},
    # {"id": "1784911889926262786", "labelName": "成都市蒲江县江华电器有限公司"},
    # {"id": "1784911889905291265", "labelName": "成都蜀都万达广场店"},
    # {"id": "1784911889884319746", "labelName": "成都双流卖场"},
    # {"id": "1784911889859153922", "labelName": "成都苏宁都江堰旗舰店"},
    # {"id": "1784911889829793793", "labelName": "成都苏宁光华大道伊藤店"},
    # {"id": "1784911889804627970", "labelName": "成都苏宁华阳正西街店"},
    # {"id": "1784911889775267842", "labelName": "成都苏宁建设路旗舰店"},
    # {"id": "1784911889745907714", "labelName": "成都苏宁青羊万达广场店"},
    # {"id": "1784911889716547586", "labelName": "成都苏宁双流万达广场店"},
    # {"id": "1784911889687187457", "labelName": "成都苏宁天府立交店"},
    # {"id": "1784911889662021633", "labelName": "成都苏宁万年场旗舰店"},
    # {"id": "1784911889632661506", "labelName": "成都苏宁西大街店"},
    # {"id": "1784911889607495681", "labelName": "成都苏宁犀浦百伦广场店"},
    # {"id": "1784911889586524161", "labelName": "成都苏宁新商业广场店"},
    # {"id": "1784911889561358338", "labelName": "成都温江大润发苏宁"},
    # {"id": "1784911889540386817", "labelName": "成都温江家乐福店"},
    # {"id": "1784911889519415297", "labelName": "成都温江新光天地店"},
    # {"id": "1784911889498443777", "labelName": "成都温江新光天地卖场"},
    # {"id": "1784911889477472257", "labelName": "成都武侯吾悦卖场"},
    # {"id": "1784911889456500738", "labelName": "成都犀浦百伦广场店"},
    # {"id": "1784911889435529218", "labelName": "成都营门口店"},
    # {"id": "1784911889414557698", "labelName": "城西佳乐店"},
    # {"id": "1784911889393586177", "labelName": "春熙路店"},
    # {"id": "1784911889372614657", "labelName": "东方时代广场店"},
    # {"id": "1784911889351643137", "labelName": "东区明湖川店"},
    # {"id": "1784911889330671618", "labelName": "都鼎电器"},
    # {"id": "1784911889309700097", "labelName": "多快好省电器"},
    # {"id": "1784911889288728578", "labelName": "峨眉京东县域体验店"},
    # {"id": "1784911889267757058", "labelName": "峨眉山市明恒家电有限公司(绥山店)"},
    # {"id": "1784911889246785538", "labelName": "峨眉山市天朗电器二店"},
    # {"id": "1784911889225814017", "labelName": "风情园店"},
    # {"id": "1784911889204842498", "labelName": "富森店"},
    # {"id": "1784911889179676674", "labelName": "国美零售店"},
    # {"id": "1784911889158705154", "labelName": "华阳欧尚店"},
    # {"id": "1784911889137733633", "labelName": "华阳正西街店"},
    # {"id": "1784911889116762113", "labelName": "犍为天朗电器"},
    # {"id": "1784911889095790593", "labelName": "犍为中环店"},
    # {"id": "1784911889074819073", "labelName": "简阳德盛电吕"},
    # {"id": "1784911889053847554", "labelName": "简阳苏宁旭海广场店"},
    # {"id": "1784911889032876034", "labelName": "简阳苏宁旭海时代广场店"},
    # {"id": "1784911889011904513", "labelName": "建设路店"},
    # {"id": "1784911888990932993", "labelName": "金牛万达店"},
    # {"id": "1784911888965767170", "labelName": "金堂华林电器"},
    # {"id": "1784911888944795650", "labelName": "金堂万达广场店"},
    # {"id": "1784911888923824130", "labelName": "锦华万达广场店"},
    # {"id": "1784911888898658305", "labelName": "京东电器城市旗舰店乐山店"},
    # {"id": "1784911888877686786", "labelName": "京东电器城市旗舰店泸州店"},
    # {"id": "1784911888856715266", "labelName": "京东电器城市旗舰店万年场店"},
    # {"id": "1784911888835743745", "labelName": "京东电器城市旗舰店自贡店"},
    # {"id": "1784911888814772226", "labelName": "京东五星宜宾城旗舰店"},
    # {"id": "1784911888785412098", "labelName": "九兴恒泰电器"},
    # {"id": "1784911888764440578", "labelName": "康定天龙电器有限责任公司(一店)"},
    # {"id": "1784911888743469058", "labelName": "乐山京东五星牛饵桥店"},
    # {"id": "1784911888722497538", "labelName": "乐山卖场"},
    # {"id": "1784911888701526018", "labelName": "乐山市天朗电器贸易有限公司(犍为店)"},
    # {"id": "1784911888680554497", "labelName": "乐山天朗牛咡桥店"},
    # {"id": "1784911888659582978", "labelName": "乐山天朗阳光店"},
    # {"id": "1784911888638611458", "labelName": "凉山州达达商贸有限责任公司"},
    # {"id": "1784911888613445634", "labelName": "凉山州西昌市专卖店69792"},
    # {"id": "1784911888592474113", "labelName": "林容电器乐山九道装饰店"},
    # {"id": "1784911888567308289", "labelName": "龙泉东山电器精品店"},
    # {"id": "1784911888546336769", "labelName": "龙泉世茂店"},
    # {"id": "1784911888525365249", "labelName": "龙泉鑫通汇中街店"},
    # {"id": "1784911888500199426", "labelName": "泸州汇通（蓝田店）"},
    # {"id": "1784911888479227906", "labelName": "泸州汇通（陇南店）"},
    # {"id": "1784911888454062081", "labelName": "泸州汇通（水井沟店）"},
    # {"id": "1784911888424701954", "labelName": "泸州汇通百货股份有限公司（蓝田店）"},
    # {"id": "1784911888391147522", "labelName": "泸州汇通百货股份有限公司（龙南路店）"},
    # {
    #     "id": "1784911888370176002",
    #     "labelName": "泸州汇通百货股份有限公司（纳溪汇通店）",
    # },
    # {"id": "1784911888340815874", "labelName": "泸州汇通百货股份有限公司(市区店）"},
    # {"id": "1784911888315650050", "labelName": "泸州汇通水井沟店"},
    # {"id": "1784911888290484225", "labelName": "泸州泸县跃进桥店"},
    # {"id": "1784911888265318402", "labelName": "泸州叙永滨江商城店"},
    # {"id": "1784911888240152577", "labelName": "泸州钟鼓楼门店"},
    # {"id": "1784911888214986753", "labelName": "眉山神洲一店"},
    # {"id": "1784911888189820930", "labelName": "眉山世腾店"},
    # {"id": "1784911888164655106", "labelName": "眉山市神洲电器有限公司(春熙广场店)"},
    # {"id": "1784911888143683586", "labelName": "眉山市神洲电器有限公司(一店)"},
    # {"id": "1784911888118517762", "labelName": "眉山苏宁电器万达店"},
    # {"id": "1784911888093351938", "labelName": "眉山万达广场店"},
    # {"id": "1784911888068186113", "labelName": "米易世纪家电商场"},
    # {"id": "1784911888047214593", "labelName": "内江百货大楼店"},
    # {"id": "1784911888026243074", "labelName": "内江百货大楼苏宁"},
    # {"id": "1784911888005271553", "labelName": "内江邱家嘴店"},
    # {"id": "1784911887980105729", "labelName": "内江市东兴区繁华里为明电器"},
    # {"id": "1784911887959134209", "labelName": "内江万达广场店"},
    # {"id": "1784911887938162689", "labelName": "内江万达苏宁"},
    # {"id": "1784911887912996866", "labelName": "攀枝花市东区专卖店29802"},
    # {"id": "1784911887892025345", "labelName": "攀枝花苏宁泰隆店"},
    # {"id": "1784911887871053825", "labelName": "攀枝花万达广场天猫优品A2000体验店"},
    # {"id": "1784911887850082305", "labelName": "彭州大七芳华"},
    # {"id": "1784911887829110786", "labelName": "郫县恒创太平洋店"},
    # {"id": "1784911887808139266", "labelName": "蒲江新信佳店"},
    # {"id": "1784911887787167745", "labelName": "旗胜电器（大丰国美新零售）"},
    # {"id": "1784911887762001921", "labelName": "旗胜华阳加盟店"},
    # {"id": "1784911887741030402", "labelName": "青羊万达广场店"},
    # {"id": "1784911887720058882", "labelName": "邛崃市川高贸易有限公司（川高电器）"},
    # {"id": "1784911887699087361", "labelName": "诗书路店"},
    # {"id": "1784911887678115842", "labelName": "石棉县百货有限责任公司(一店)"},
    # {"id": "1784911887652950017", "labelName": "双流万达电器"},
    # {"id": "1784911887631978497", "labelName": "双流万达广场店"},
    # {"id": "1784911887602618370", "labelName": "双流县万达家电有限责任公司"},
    # {"id": "1784911887573258242", "labelName": "双楠店"},
    # {"id": "1784911887548092418", "labelName": "顺城街店"},
    # {"id": "1784911887527120897", "labelName": "四川新都店"},
    # {"id": "1784911887506149378", "labelName": "苏宁成都温江家乐福店"},
    # {"id": "1784911887485177857", "labelName": "苏宁龙泉世贸广场店"},
    # {"id": "1784911887464206338", "labelName": "苏宁攀西店"},
    # {"id": "1784911887439040513", "labelName": "苏宁天府立交二店"},
    # {"id": "1784911887418068993", "labelName": "苏宁万年场店"},
    # {"id": "1784911887392903170", "labelName": "苏宁易购成都温江大润发店"},
    # {"id": "1784911887371931650", "labelName": "泰邦电器"},
    # {"id": "1784911887346765826", "labelName": "泰邦英祥店"},
    # {"id": "1784911887325794305", "labelName": "天府二店"},
    # {"id": "1784911887304822785", "labelName": "天府立交店"},
    # {"id": "1784911887283851265", "labelName": "天朗牛咡桥店"},
    # {"id": "1784911887262879746", "labelName": "天彭街道天猫优品A2000体验店"},
    # {"id": "1784911887237713921", "labelName": "万年场店"},
    # {"id": "1784911887216742401", "labelName": "威远华林店"},
    # {"id": "1784911887195770882", "labelName": "温江大润发店"},
    # {"id": "1784911887174799361", "labelName": "温江光华公园店"},
    # {"id": "1784911887153827841", "labelName": "沃尔玛店"},
    # {"id": "1784911887132856321", "labelName": "五通桥林荣电器"},
    # {"id": "1784911887107690497", "labelName": "五星大丰"},
    # {"id": "1784911887086718978", "labelName": "五星大邑万镇通店"},
    # {"id": "1784911887065747457", "labelName": "五星郫县店"},
    # {"id": "1784911887044775937", "labelName": "五星青白江泰邦万镇通店"},
    # {"id": "1784911887019610113", "labelName": "五星万年场"},
    # {"id": "1784911886998638594", "labelName": "五星新都店"},
    # {"id": "1784911886981861377", "labelName": "五星营门口"},
    # {"id": "1784911886960889857", "labelName": "西昌市东虹商贸有限责任公司"},
    # {"id": "1784911886935724034", "labelName": "西昌体育广场店"},
    # {"id": "1784911886914752513", "labelName": "西昌万达店"},
    # {"id": "1784911886893780993", "labelName": "西城广场店"},
    # {"id": "1784911886872809473", "labelName": "西大街店"},
    # {"id": "1784911886851837954", "labelName": "西单商场店"},
    # {"id": "1784911886830866433", "labelName": "西区星瑞广场店"},
    # {"id": "1784911886805700609", "labelName": "新都大丰汇融广场店"},
    # {"id": "1784911886784729090", "labelName": "鑫旗胜大丰苏宁店"},
    # {"id": "1784911886763757569", "labelName": "鑫旗胜华阳店"},
    # {"id": "1784911886742786049", "labelName": "雅安石棉百货"},
    # {"id": "1784911886717620226", "labelName": "雅安万达广场店"},
    # {"id": "1784911886696648705", "labelName": "宜宾翠柏大道店"},
    # {"id": "1784911886675677186", "labelName": "宜宾南岸苏宁"},
    # {"id": "1784911886650511362", "labelName": "宜宾南岸体育广场店"},
    # {"id": "1784911886629539841", "labelName": "宜宾南溪鑫宇钻石城店"},
    # {"id": "1784911886608568322", "labelName": "迎宾大道店"},
    # {"id": "1784911886587596802", "labelName": "众合电器一店"},
    # {"id": "1784911886566625282", "labelName": "资阳百盛（建北店）"},
    # {"id": "1784911886545653762", "labelName": "资阳飞龙电器"},
    # {"id": "1784911886524682242", "labelName": "资阳市百盛家电五交化有限公司(佳家店)"},
    # {"id": "1784911886503710721", "labelName": "资阳雁江百盛五交化（尹发菊"},
    # {"id": "1784911886486933506", "labelName": "自贡富顺大道苏宁"},
    # {"id": "1784911886465961985", "labelName": "自贡富州大道店"},
    # {"id": "1784911886444990466", "labelName": "自贡汇东路店"},
    # {"id": "1784911886424018945", "labelName": "自贡汇东苏宁"},
    # {"id": "1784911886398853122", "labelName": "自贡京东五星旗舰店"},
    # {"id": "1784911886377881601", "labelName": "自贡卖场"},
    # {"id": "1784911886356910081", "labelName": "自贡南湖店"},
    # {"id": "1784911886331744258", "labelName": "自贡南湖苏宁"},
    # {"id": "1784911886310772737", "labelName": "自贡十字口苏宁"},
    # {"id": "1784911886285606914", "labelName": "顶上一店"},
    # {"id": "1784911886264635394", "labelName": "家福来双楠店"},
    # {"id": "1784911886239469570", "labelName": "经纬商场店"},
    # {"id": "1784911886214303746", "labelName": "酒城中心店"},
    # {"id": "1784911886189137921", "labelName": "世纪摩尔店"},
    # {"id": "1784911886155583489", "labelName": "谢家王林电器一店"},
    # {"id": "1784911886101057538", "labelName": "新都圣大电器"},
    # {"id": "1784911886075891714", "labelName": "新都苏宁广场店"},
    # {"id": "1784911886050725889", "labelName": "中森光华店"},
    # {"id": "1782685238822375426", "labelName": "营门口店"},
    # {"id": "1782075061987381250", "labelName": "苏宁天府立交店"},
    # {"id": "1781207547939205121", "labelName": "营门口京东五星电器店"},
    # {"id": "1784911891088084993", "labelName": "701P_成都温江光华公园店"},
    # {"id": "1784911891062919169", "labelName": "703L_宜宾南溪鑫宇钻石城店"},
    # {"id": "1784911891033559042", "labelName": "704O_自贡南湖店"},
    # {"id": "1784911891008393218", "labelName": "710D_成都蜀都万达广场店"},
    # {"id": "1784911890979033090", "labelName": "711Q_内江万达广场店"},
    # {"id": "1784911890953867265", "labelName": "712Q_成都青羊万达广场店"},
    # {"id": "1784911890928701441", "labelName": "712R_成都双流万达广场店"},
    # {"id": "1784911890903535618", "labelName": "71AC_成都新都苏宁易购广场店"},
    # {"id": "1784911890882564097", "labelName": "71AI_成都金牛万达广场店"},
    # {"id": "1784911890861592577", "labelName": "71D8_苏宁易家成都高新盛和路店"},
    # {"id": "1784911890840621058", "labelName": "723L_成都锦华万达广场店"},
    # {"id": "1784911890819649538", "labelName": "724S_眉山万达广场店"},
    # {"id": "1784911890798678018", "labelName": "738E_眉山大润发店"},
    # {"id": "1784911890777706497", "labelName": "7527_宜宾翠柏大道店"},
    # {"id": "1784911890756734977", "labelName": "77EN_自贡市富顺两校店"},
    # {"id": "1784911890714791937", "labelName": "7935_成都天府立交店"},
    # {"id": "1784911890643488769", "labelName": "8048_宜宾南岸体育广场店"},
    # {"id": "1784911890622517250", "labelName": "8633_成都新商业广场店"},
    # {"id": "1784911890588962818", "labelName": "87AS_成都锦江春熙路店"},
    # {"id": "1784911890567991298", "labelName": "9104_成都都江堰旗舰店"},
    # {"id": "1784911890547019777", "labelName": "9478_成都双楠店"},
    # {"id": "1784911890526048258", "labelName": "9479_成都万年场旗舰店"},
    # {"id": "1784911890505076737", "labelName": "9480_成都西大街店"},
    # {"id": "1784911890484105218", "labelName": "9486_成都建设路旗舰店"},
    # {"id": "1784911890463133698", "labelName": "9488_成都华阳正西街店"},
    # {"id": "1784911890442162177", "labelName": "9540_内江百货大楼店"},
    # {"id": "1784911890425384961", "labelName": "9541_内江邱家嘴店"},
    # {"id": "1784911890396024834", "labelName": "9543_内江城市花园店"},
    # {"id": "1784911890375053313", "labelName": "9560_自贡汇东路店"},
    # {"id": "1784911890354081794", "labelName": "9563_成都犀浦百伦广场店"},
    # {"id": "1784911890333110273", "labelName": "柏溪店"},
    # {"id": "1784911890312138754", "labelName": "炳草岗店"},
    # {"id": "1784911890291167233", "labelName": "炳草岗中心广场店"},
    # {"id": "1784911890270195714", "labelName": "成都崇州万达广场店"},
    # {"id": "1784911890245029889", "labelName": "成都都江堰旗舰店"},
    # {"id": "1784911890211475458", "labelName": "成都建设路店"},
    # {"id": "1784911890186309633", "labelName": "成都建设路卖场"},
    # {"id": "1784911890165338114", "labelName": "成都金牛万达广场店"},
    # {"id": "1784911890144366594", "labelName": "成都锦华万达广场店"},
    # {"id": "1784911890123395074", "labelName": "成都京东五星龙泉店"},
    # {"id": "1784911890102423553", "labelName": "成都京东五星双流店"},
    # {"id": "1784911890081452033", "labelName": "成都京东五星万年场店"},
    # {"id": "1784911890052091905", "labelName": "成都九兴电器有限公司"},
    # {"id": "1784911890031120385", "labelName": "成都龙泉店"},
    # {"id": "1784911890010148866", "labelName": "成都牡丹新城店"},
    # {"id": "1784911889989177345", "labelName": "成都郫都卖场"},
    # {
    #     "id": "1784911889968205826",
    #     "labelName": "成都郫都区恒创太平洋购物中心苏宁易购零售云店",
    # },
    # {"id": "1784911889947234306", "labelName": "成都上古卖场"},
    # {"id": "1784911889926262786", "labelName": "成都市蒲江县江华电器有限公司"},
    # {"id": "1784911889905291265", "labelName": "成都蜀都万达广场店"},
    # {"id": "1784911889884319746", "labelName": "成都双流卖场"},
    # {"id": "1784911889859153922", "labelName": "成都苏宁都江堰旗舰店"},
    # {"id": "1784911889829793793", "labelName": "成都苏宁光华大道伊藤店"},
    # {"id": "1784911889804627970", "labelName": "成都苏宁华阳正西街店"},
    # {"id": "1784911889775267842", "labelName": "成都苏宁建设路旗舰店"},
    # {"id": "1784911889745907714", "labelName": "成都苏宁青羊万达广场店"},
    # {"id": "1784911889716547586", "labelName": "成都苏宁双流万达广场店"},
    # {"id": "1784911889687187457", "labelName": "成都苏宁天府立交店"},
    # {"id": "1784911889662021633", "labelName": "成都苏宁万年场旗舰店"},
    # {"id": "1784911889632661506", "labelName": "成都苏宁西大街店"},
    # {"id": "1784911889607495681", "labelName": "成都苏宁犀浦百伦广场店"},
    # {"id": "1784911889586524161", "labelName": "成都苏宁新商业广场店"},
    # {"id": "1784911889561358338", "labelName": "成都温江大润发苏宁"},
    # {"id": "1784911889540386817", "labelName": "成都温江家乐福店"},
    # {"id": "1784911889519415297", "labelName": "成都温江新光天地店"},
    # {"id": "1784911889498443777", "labelName": "成都温江新光天地卖场"},
    # {"id": "1784911889477472257", "labelName": "成都武侯吾悦卖场"},
    # {"id": "1784911889456500738", "labelName": "成都犀浦百伦广场店"},
    # {"id": "1784911889435529218", "labelName": "成都营门口店"},
    # {"id": "1784911889414557698", "labelName": "城西佳乐店"},
    # {"id": "1784911889393586177", "labelName": "春熙路店"},
    # {"id": "1784911889372614657", "labelName": "东方时代广场店"},
    # {"id": "1784911889351643137", "labelName": "东区明湖川店"},
    # {"id": "1784911889330671618", "labelName": "都鼎电器"},
    # {"id": "1784911889309700097", "labelName": "多快好省电器"},
    # {"id": "1784911889288728578", "labelName": "峨眉京东县域体验店"},
    # {"id": "1784911889267757058", "labelName": "峨眉山市明恒家电有限公司(绥山店)"},
    # {"id": "1784911889246785538", "labelName": "峨眉山市天朗电器二店"},
    # {"id": "1784911889225814017", "labelName": "风情园店"},
    # {"id": "1784911889204842498", "labelName": "富森店"},
    # {"id": "1784911889179676674", "labelName": "国美零售店"},
    # {"id": "1784911889158705154", "labelName": "华阳欧尚店"},
    # {"id": "1784911889137733633", "labelName": "华阳正西街店"},
    # {"id": "1784911889116762113", "labelName": "犍为天朗电器"},
    # {"id": "1784911889095790593", "labelName": "犍为中环店"},
    # {"id": "1784911889074819073", "labelName": "简阳德盛电吕"},
    # {"id": "1784911889053847554", "labelName": "简阳苏宁旭海广场店"},
    # {"id": "1784911889032876034", "labelName": "简阳苏宁旭海时代广场店"},
    # {"id": "1784911889011904513", "labelName": "建设路店"},
    # {"id": "1784911888990932993", "labelName": "金牛万达店"},
    # {"id": "1784911888965767170", "labelName": "金堂华林电器"},
    # {"id": "1784911888944795650", "labelName": "金堂万达广场店"},
    # {"id": "1784911888923824130", "labelName": "锦华万达广场店"},
    # {"id": "1784911888898658305", "labelName": "京东电器城市旗舰店乐山店"},
    # {"id": "1784911888877686786", "labelName": "京东电器城市旗舰店泸州店"},
    # {"id": "1784911888856715266", "labelName": "京东电器城市旗舰店万年场店"},
    # {"id": "1784911888835743745", "labelName": "京东电器城市旗舰店自贡店"},
    # {"id": "1784911888814772226", "labelName": "京东五星宜宾城旗舰店"},
    # {"id": "1784911888785412098", "labelName": "九兴恒泰电器"},
    # {"id": "1784911888764440578", "labelName": "康定天龙电器有限责任公司(一店)"},
    # {"id": "1784911888743469058", "labelName": "乐山京东五星牛饵桥店"},
    # {"id": "1784911888722497538", "labelName": "乐山卖场"},
    # {"id": "1784911888701526018", "labelName": "乐山市天朗电器贸易有限公司(犍为店)"},
    # {"id": "1784911888680554497", "labelName": "乐山天朗牛咡桥店"},
    # {"id": "1784911888659582978", "labelName": "乐山天朗阳光店"},
    # {"id": "1784911888638611458", "labelName": "凉山州达达商贸有限责任公司"},
    # {"id": "1784911888613445634", "labelName": "凉山州西昌市专卖店69792"},
    # {"id": "1784911888592474113", "labelName": "林容电器乐山九道装饰店"},
    # {"id": "1784911888567308289", "labelName": "龙泉东山电器精品店"},
    # {"id": "1784911888546336769", "labelName": "龙泉世茂店"},
    # {"id": "1784911888525365249", "labelName": "龙泉鑫通汇中街店"},
    # {"id": "1784911888500199426", "labelName": "泸州汇通（蓝田店）"},
    # {"id": "1784911888479227906", "labelName": "泸州汇通（陇南店）"},
    # {"id": "1784911888454062081", "labelName": "泸州汇通（水井沟店）"},
    # {"id": "1784911888424701954", "labelName": "泸州汇通百货股份有限公司（蓝田店）"},
    # {"id": "1784911888391147522", "labelName": "泸州汇通百货股份有限公司（龙南路店）"},
    # {
    #     "id": "1784911888370176002",
    #     "labelName": "泸州汇通百货股份有限公司（纳溪汇通店）",
    # },
    # {"id": "1784911888340815874", "labelName": "泸州汇通百货股份有限公司(市区店）"},
    # {"id": "1784911888315650050", "labelName": "泸州汇通水井沟店"},
    # {"id": "1784911888290484225", "labelName": "泸州泸县跃进桥店"},
    # {"id": "1784911888265318402", "labelName": "泸州叙永滨江商城店"},
    # {"id": "1784911888240152577", "labelName": "泸州钟鼓楼门店"},
    # {"id": "1784911888214986753", "labelName": "眉山神洲一店"},
    # {"id": "1784911888189820930", "labelName": "眉山世腾店"},
    # {"id": "1784911888164655106", "labelName": "眉山市神洲电器有限公司(春熙广场店)"},
    # {"id": "1784911888143683586", "labelName": "眉山市神洲电器有限公司(一店)"},
    # {"id": "1784911888118517762", "labelName": "眉山苏宁电器万达店"},
    # {"id": "1784911888093351938", "labelName": "眉山万达广场店"},
    # {"id": "1784911888068186113", "labelName": "米易世纪家电商场"},
    # {"id": "1784911888047214593", "labelName": "内江百货大楼店"},
    # {"id": "1784911888026243074", "labelName": "内江百货大楼苏宁"},
    # {"id": "1784911888005271553", "labelName": "内江邱家嘴店"},
    {"id": "1784911887980105729", "labelName": "内江市东兴区繁华里为明电器"},
    {"id": "1784911887959134209", "labelName": "内江万达广场店"},
    {"id": "1784911887938162689", "labelName": "内江万达苏宁"},
    {"id": "1784911887912996866", "labelName": "攀枝花市东区专卖店29802"},
    {"id": "1784911887892025345", "labelName": "攀枝花苏宁泰隆店"},
    {"id": "1784911887871053825", "labelName": "攀枝花万达广场天猫优品A2000体验店"},
    {"id": "1784911887850082305", "labelName": "彭州大七芳华"},
    {"id": "1784911887829110786", "labelName": "郫县恒创太平洋店"},
    {"id": "1784911887808139266", "labelName": "蒲江新信佳店"},
    {"id": "1784911887787167745", "labelName": "旗胜电器（大丰国美新零售）"},
    {"id": "1784911887762001921", "labelName": "旗胜华阳加盟店"},
    {"id": "1784911887741030402", "labelName": "青羊万达广场店"},
    {"id": "1784911887720058882", "labelName": "邛崃市川高贸易有限公司（川高电器）"},
    {"id": "1784911887699087361", "labelName": "诗书路店"},
    {"id": "1784911887678115842", "labelName": "石棉县百货有限责任公司(一店)"},
    {"id": "1784911887652950017", "labelName": "双流万达电器"},
    {"id": "1784911887631978497", "labelName": "双流万达广场店"},
    {"id": "1784911887602618370", "labelName": "双流县万达家电有限责任公司"},
    {"id": "1784911887573258242", "labelName": "双楠店"},
    {"id": "1784911887548092418", "labelName": "顺城街店"},
    {"id": "1784911887527120897", "labelName": "四川新都店"},
    {"id": "1784911887506149378", "labelName": "苏宁成都温江家乐福店"},
    {"id": "1784911887485177857", "labelName": "苏宁龙泉世贸广场店"},
    {"id": "1784911887464206338", "labelName": "苏宁攀西店"},
    {"id": "1784911887439040513", "labelName": "苏宁天府立交二店"},
    {"id": "1784911887418068993", "labelName": "苏宁万年场店"},
    {"id": "1784911887392903170", "labelName": "苏宁易购成都温江大润发店"},
    {"id": "1784911887371931650", "labelName": "泰邦电器"},
    {"id": "1784911887346765826", "labelName": "泰邦英祥店"},
    {"id": "1784911887325794305", "labelName": "天府二店"},
    {"id": "1784911887304822785", "labelName": "天府立交店"},
    {"id": "1784911887283851265", "labelName": "天朗牛咡桥店"},
    {"id": "1784911887262879746", "labelName": "天彭街道天猫优品A2000体验店"},
    {"id": "1784911887237713921", "labelName": "万年场店"},
    {"id": "1784911887216742401", "labelName": "威远华林店"},
    {"id": "1784911887195770882", "labelName": "温江大润发店"},
    {"id": "1784911887174799361", "labelName": "温江光华公园店"},
    {"id": "1784911887153827841", "labelName": "沃尔玛店"},
    {"id": "1784911887132856321", "labelName": "五通桥林荣电器"},
    {"id": "1784911887107690497", "labelName": "五星大丰"},
    {"id": "1784911887086718978", "labelName": "五星大邑万镇通店"},
    {"id": "1784911887065747457", "labelName": "五星郫县店"},
    {"id": "1784911887044775937", "labelName": "五星青白江泰邦万镇通店"},
    {"id": "1784911887019610113", "labelName": "五星万年场"},
    {"id": "1784911886998638594", "labelName": "五星新都店"},
    {"id": "1784911886981861377", "labelName": "五星营门口"},
    {"id": "1784911886960889857", "labelName": "西昌市东虹商贸有限责任公司"},
    {"id": "1784911886935724034", "labelName": "西昌体育广场店"},
    {"id": "1784911886914752513", "labelName": "西昌万达店"},
    {"id": "1784911886893780993", "labelName": "西城广场店"},
    {"id": "1784911886872809473", "labelName": "西大街店"},
    {"id": "1784911886851837954", "labelName": "西单商场店"},
    {"id": "1784911886830866433", "labelName": "西区星瑞广场店"},
    {"id": "1784911886805700609", "labelName": "新都大丰汇融广场店"},
    {"id": "1784911886784729090", "labelName": "鑫旗胜大丰苏宁店"},
    {"id": "1784911886763757569", "labelName": "鑫旗胜华阳店"},
    {"id": "1784911886742786049", "labelName": "雅安石棉百货"},
    {"id": "1784911886717620226", "labelName": "雅安万达广场店"},
    {"id": "1784911886696648705", "labelName": "宜宾翠柏大道店"},
    {"id": "1784911886675677186", "labelName": "宜宾南岸苏宁"},
    {"id": "1784911886650511362", "labelName": "宜宾南岸体育广场店"},
    {"id": "1784911886629539841", "labelName": "宜宾南溪鑫宇钻石城店"},
    {"id": "1784911886608568322", "labelName": "迎宾大道店"},
    {"id": "1784911886587596802", "labelName": "众合电器一店"},
    {"id": "1784911886566625282", "labelName": "资阳百盛（建北店）"},
    {"id": "1784911886545653762", "labelName": "资阳飞龙电器"},
    {"id": "1784911886524682242", "labelName": "资阳市百盛家电五交化有限公司(佳家店)"},
    {"id": "1784911886503710721", "labelName": "资阳雁江百盛五交化（尹发菊"},
    {"id": "1784911886486933506", "labelName": "自贡富顺大道苏宁"},
    {"id": "1784911886465961985", "labelName": "自贡富州大道店"},
    {"id": "1784911886444990466", "labelName": "自贡汇东路店"},
    {"id": "1784911886424018945", "labelName": "自贡汇东苏宁"},
    {"id": "1784911886398853122", "labelName": "自贡京东五星旗舰店"},
    {"id": "1784911886377881601", "labelName": "自贡卖场"},
    {"id": "1784911886356910081", "labelName": "自贡南湖店"},
    {"id": "1784911886331744258", "labelName": "自贡南湖苏宁"},
    {"id": "1784911886310772737", "labelName": "自贡十字口苏宁"},
    {"id": "1784911886285606914", "labelName": "顶上一店"},
    {"id": "1784911886264635394", "labelName": "家福来双楠店"},
    {"id": "1784911886239469570", "labelName": "经纬商场店"},
    {"id": "1784911886214303746", "labelName": "酒城中心店"},
    {"id": "1784911886189137921", "labelName": "世纪摩尔店"},
    {"id": "1784911886155583489", "labelName": "谢家王林电器一店"},
    {"id": "1784911886101057538", "labelName": "新都圣大电器"},
    {"id": "1784911886075891714", "labelName": "新都苏宁广场店"},
    {"id": "1784911886050725889", "labelName": "中森光华店"},
    {"id": "1782685238822375426", "labelName": "营门口店"},
    {"id": "1782075061987381250", "labelName": "苏宁天府立交店"},
    {"id": "1781207547939205121", "labelName": "营门口京东五星电器店"},
]
deps_old = [
    # {"id": "1784911891088084993", "labelName": "701P_成都温江光华公园店"},
    # {"id": "1784911891062919169", "labelName": "703L_宜宾南溪鑫宇钻石城店"},
    # {"id": "1782075061987381250", "labelName": "苏宁天府立交店"},
    # {"id": "1781207547939205121", "labelName": "营门口京东五星电器店"},

    # {"id": "1782075061987381250", "labelName": "苏宁天府立交店"},
    # {"id": "1781207547939205121", "labelName": "营门口京东五星电器店"},
]


def run_stript():
    for dep in deps:
        tpl_array = tpl("长虹美菱会员福利群-" +  dep["labelName"])
        print(tpl_array)
        run_setp(tpl_array)


run_stript()
